package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 车位销售对象 t_carportsell
 * 
 * @author ruoyi
 * @date 2022-11-29
 */
public class TCarportsell extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键，停车场区域Id，自增 */
    private Long sellid;

    /** 与t_carport表主键关联，车位号 */
    @Excel(name = "与t_carport表主键关联，车位号")
    private Long cid;

    /** 与t_proprietor表主键关联，业主信息 */
    @Excel(name = "与t_proprietor表主键关联，业主信息")
    private Long pid;

    /** 与t_area表主键关联，区域Id */
    @Excel(name = "与t_area表主键关联，区域Id")
    private Long typestate;

    /** 销售时间 */
    @Excel(name = "销售时间")
    @JsonFormat(pattern = "yyyy年MM月dd日 HH时mm分ss秒")
    private Date selldate;

    /** 车位价格 */
    @Excel(name = "车位价格")
    private Long sellprice;

    public void setSellid(Long sellid) 
    {
        this.sellid = sellid;
    }

    public Long getSellid() 
    {
        return sellid;
    }
    public void setCid(Long cid) 
    {
        this.cid = cid;
    }

    public Long getCid() 
    {
        return cid;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setTypestate(Long typestate) 
    {
        this.typestate = typestate;
    }

    public Long getTypestate() 
    {
        return typestate;
    }
    public void setSelldate(Date selldate) 
    {
        this.selldate = selldate;
    }

    public Date getSelldate() 
    {
        return selldate;
    }
    public void setSellprice(Long sellprice) 
    {
        this.sellprice = sellprice;
    }

    public Long getSellprice() 
    {
        return sellprice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("sellid", getSellid())
            .append("cid", getCid())
            .append("pid", getPid())
            .append("typestate", getTypestate())
            .append("selldate", getSelldate())
            .append("sellprice", getSellprice())
            .toString();
    }
}
